import { createApp } from 'vue'
import 'default-passive-events'
import App from './App.vue'
import router from './router'
import pinia from './stores'
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import 'element-plus/theme-chalk/dark/css-vars.css'
import '@/assets/dark.scss'
import '@/assets/main.scss'
import { to } from '@/utils/asyncTask.js'
// import 'element-plus/theme-chalk/el-message-box.css'
// import 'element-plus/theme-chalk/el-message.css'
import * as ElementPlusIconsVue from '@element-plus/icons-vue'

const app = createApp(App)
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
  app.component(key, component)
}
app.provide('to', to)
app.use(ElementPlus)
app.use(pinia)
app.use(router)
app.mount('#app')
